package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.OrderStatus;
import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

public interface OrderInfoService {
    boolean hasStock(Long skuId, Integer skuNum);

    Long submitOrder(OrderInfo orderInfo);

    void cancelOrder(Long orderId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(Long orderId, OrderStatus paid, ProcessStatus paid1);

    void sendOrderStatus(Long orderId);

    //更新订单进度状态
    public void updateOrderStatus(Long orderId,ProcessStatus ps);

    //初始化一份数据 发消息给库存微服务 那边的数据
    public Map<String, Object> initWareOrder(OrderInfo orderInfo);

    List<OrderInfo> orderSplit(String orderId, String wareSkuMap);
}
